import { axios } from '@/utils/request'

export interface LoginParam {
    username: string
    password: string
}

export const Login = (param: LoginParam) => {
    return axios({
        url: '/user/login',
        method: 'post',
        data: param
    })
}


export const getMenu = () => {
    return axios({
        url: '/user/getMenu',
        method: 'post',
    })
}
